<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"    
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
	   xmlns:p="http://primefaces.org/ui">
<h:head>
   <title>Login</title>
</h:head> 
<h:body>
   <h2>Welcome to zus! Please login.</h2>
        <h:form id="loginForm"> 
           <h:panelGrid id="panel1" columns="2">
              <p:outputLabel for="loginName" value="Login name:"/>
              <p:inputText id="loginName" value="#{LoginBean.login}" required="true"/>
              <p:outputLabel for="password" value="Password:"/>
              <p:password id="password" value="#{LoginBean.password}" required="true"/>
              <p:commandButton id="submit" value="Sign in" action="#{LoginBean.logining}" update="loginForm"/>
           </h:panelGrid>
        </h:form> 
</h:body> 
</html>  